#include <iostream>
#include <cstdlib>
#include <ctime>
#include <Windows.h>

using namespace std;

int execTimer() {
    int hours=0, minutes=0, seconds=10, totalSeconds;
    cout << "Enter hours: ";
    cin >> hours;
    cout << "Enter minutes: ";
    cin >> minutes;
    cout << "Enter seconds: ";
    cin >> seconds;
    totalSeconds = hours * 3600 + minutes * 60 + seconds;

    for (int i = totalSeconds; i >= 0; i--) {
        int h, m, s;
        h = i / 3600;
        m = (i % 3600) / 60;
        s = i % 60;
        cout << h << ":" << m << ":" << s << endl;
        Sleep(1000);
        system("cls");
    }

    cout << "Time is up!" << endl;

    return 1;
}